package com.groupsix.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/")
    public String showIndexView(){
        return "pagehome/index";
    }
    //显示登录页
    @RequestMapping("/loginView")
    public String showLoginView(){
        return "pagehome/login";
    }
    //显示注册视图
    @RequestMapping("/registView")
    public String showRegisterView(){
        return "pagehome/register";
    }
    //显示短租自驾视图
    @RequestMapping("/shortRent")
    public String showShortRentView(){
        return "shortRent/shortrent";
    }
    //显示登录成功视图
    @RequestMapping("/loginsuccess")
    public String showLoginSuccessView(){
        return "pagehome/loginsuccess";
    }
    //    显示选车视图
    @RequestMapping("/shortsort")
    public String showShortSortView(){
        return "shortRent/shortsort";
    }
    //   显示添加订单信息视图
    @RequestMapping("/order")
    public String showOrderView(){
        return "order/ordersubmit";
    }
//    显示我的订单视图
    @RequestMapping("/orders")
    public String  showOrderListView(){
        return "mymain/mymain";
    }
    //显示个人信息视图
    @RequestMapping("/myinfo")
    public String showMyInfo(){return "mymain/myinfo";}

    @RequestMapping("shortrent")
    public String ShowShortRentView(){
        return "shortRent/shortrent";
    }
    @RequestMapping("shortsort")
    public String ShowShortSortView(){
        return "shortRent/shortsort";
    }
}
